//
//  PywCommonEncryptUtils.h
//  PywCommonSDKDemo
//
//  Created by Ampaw on 2017/8/10.
//  Copyright © 2017年 Ampaw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "zlib.h"

@interface PywCommonEncryptUtils : NSObject

/**
 * md5加密
 */
+ (NSString *)md5:(NSString *)text;

/**
 * 非对称加密
 */
+ (NSData *)encryptRSA:(NSString *)publicKey plainData:(NSData *)plainData;

/**
 * base64加密
 */
+ (NSData *)base64Decode:(NSString *)string;

/**
 * base64解密
 */
+ (NSString *)base64Encode:(NSData *)data;

/**
 *@param pUncompressedData 需要压缩的数据
 */
+ (NSData *)gzipData:(NSData *)pUncompressedData;

/**
 *@param compressedData 需要解压的数据
 */
+ (NSData *)uncompressZippedData:(NSData *)compressedData;

@end
